package com.app.shiyanbiji.service;

import javax.annotation.Resource;
import org.mybatis.spring.SqlSessionTemplate;

public class BaseService {
	@Resource
	protected SqlSessionTemplate sqlSessionTemplate;
	
	protected String sql() {
		String sqlId = new RuntimeException().getStackTrace()[1].getMethodName();
		return getClass().getSimpleName() + '.' + sqlId;
	}
}
